package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> selectAllUser(@Param("realName")String realName,
                             @Param("start")int start,
                             @Param("pageSize")int pageSize);//分页查询用户信息

    int selectUserCount(@Param("realName")String realName);//查询用户数量

    int updateUser1(User user);//更改用户用户状态

    int updateUser2(User user);//更改用户用户状态
}
